﻿@model KCMS.BusinessLogic.Models.News
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <legend>News</legend>
    <div class="editor-label">
        @Html.LabelFor(model => model.Title)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Title)
        @Html.ValidationMessageFor(model => model.Title)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Code)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Code)
        @Html.ValidationMessageFor(model => model.Code)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Description)
    </div>
    <div class="editor-field">
      @Html.TextAreaFor(model => model.Description, 5, 50, new { @class = "html-editor-simple" })
        @Html.ValidationMessageFor(model => model.Description)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Text)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(model => model.Text, 25, 50, new { @class = "html-editor" })
        @Html.ValidationMessageFor(model => model.Text)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.MetaDescription)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(model => model.MetaDescription, 5, 50, null)
        @Html.ValidationMessageFor(model => model.MetaDescription)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.MetaKeys)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(model => model.MetaKeys, 5, 50, null)
        @Html.ValidationMessageFor(model => model.MetaKeys)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.Date)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Date)
        @Html.ValidationMessageFor(model => model.Date)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.Published)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Published)
        @Html.ValidationMessageFor(model => model.Published)
    </div>

    @Html.HiddenFor(model => model.Id)

    

      
}
